/**
 * Main application routes
 */
'use strict';

module.exports = function (app){

	app.use('/api/user', require('./api/user'));

	app.use('/auth', require('./auth').default);

    app.use('/api/post', require('./api/post'));

    app.use('/api/gamePost', require('./api/gamePost'));

     app.use('/api/comment', require('./api/comment'));

    app.use('/api/upload', require('./api/upload'));

	app.use('/',function(req, res) {
  		res.sendFile('index.html', {'root': './client/'})
	})

}
